package com.mobi.cacti;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ListView;
import android.widget.RelativeLayout;

import com.mobi.cacti.common.Utils;

public class NewsActivity extends Activity {	
	public RelativeLayout rl_mainInfo;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		/*
		setContentView(R.layout.atv_news);
		try
		{
			
			
			rl_mainInfo = (RelativeLayout)findViewById(R.id.rl_main_info);
			if(MainActivity.ll_child != null) rl_mainInfo.removeView(MainActivity.ll_child);						
			MainActivity.ll_child = new LL_News(NewsActivity.this, null);
			rl_mainInfo.addView(MainActivity.ll_child);			
				        
			MainActivity.btnBack.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View view) {						
					if(MainActivity.lastChildName != null && MainActivity.ll_child != null)
					{
						rl_mainInfo.removeView(MainActivity.ll_child);							
						if( MainActivity.lastChildName.equals("LL_NewsCc")){
							MainActivity.btnBack.setVisibility(View.GONE);
							MainActivity.ll_child = new LL_News(NewsActivity.this, null);
							rl_mainInfo.addView(MainActivity.ll_child);
			    		}				
					}	    			
				}
			});
		}
		catch (Exception ex)
        {
     	  Utils.catchFn("News onCreate",ex, NewsActivity.this);
        }
        */	
	}//end onCreate
	
	@Override
    public void onBackPressed()
    {    	
    	try{   	
    		return;
    	}
    	catch(Exception ex)
	    {}    	
    	super.onBackPressed();
    }
	
}
